package com.itheima.开启多线程.myrunnable;

/**
 * @Author 王加鑫
 * @Date 2021/5/22 10:19
 * @Version 1.0
 */
public class MyRunnable implements Runnable {

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            //Thread.currentThread() 获取当前线程对象的引用
            System.out.println(Thread.currentThread().getName() + " " + i);
        }
    }
}
